projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d9a3de
)
gtk-demo: Fix expander demo
author
Alexander Larsson
<alexl@redhat.com>
Wed, 13 May 2020 08:50:41 +0000
(10:50 +0200)
committer
Alexander Larsson
<alexl@redhat.com>
Wed, 13 May 2020 08:50:41 +0000
(10:50 +0200)
GtkExpander is not a GtkBox anymore, so use the new gtk_expander_set_child()
API.
demos/gtk-demo/expander.c
patch
|
blob
|
history
diff --git
a/demos/gtk-demo/expander.c
b/demos/gtk-demo/expander.c
index 46ccff183387212ec390193a23fb7d78f6c050b6..6d4583dbff3cf119cc0044c3a0bf606322558795 100644
(file)
--- a/
demos/gtk-demo/expander.c
+++ b/
demos/gtk-demo/expander.c
@@
-79,7
+79,7
@@
do_expander (GtkWidget *do_widget)
"innuendo, just to make you scroll down or "
"resize the window. Do it already !", -1);
gtk_scrolled_window_set_child (GTK_SCROLLED_WINDOW (sw), tv);
- gtk_
box_append (GTK_BOX
(expander), sw);
+ gtk_
expander_set_child (GTK_EXPANDER
(expander), sw);
gtk_box_append (GTK_BOX (area), expander);
g_signal_connect (expander, "notify::expanded",
G_CALLBACK (expander_cb), window);